﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class EducationLevel
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int EducationLevelID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Description { get; set; }

        public virtual ICollection<Person> People { get; set; }

        public EducationLevel()
        {

        }
        public EducationLevel(Int32 educationLevelId, String description)
        {
            this.EducationLevelID = educationLevelId;
            this.Description = description;
        }
    }
}
